package com.csk.zsk.compents.entity;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

import com.csk.zsk.commons.entity.IdEntity;
@Entity
@Table(name = "COMIC_PAGES")
@JsonIgnoreProperties({ "comicChapters" })
public class ComicPages extends IdEntity {
	private Integer num;
	private String url;
	private ComicChapters comicChapters;
	
	public Integer getNum() {
		return num;
	}
	public void setNum(Integer num) {
		this.num = num;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "chaptersid")
	public ComicChapters getComicChapters() {
		return comicChapters;
	}
	public void setComicChapters(ComicChapters comicChapters) {
		this.comicChapters = comicChapters;
	}
	
	
	
	
	
}
